package com.filetransfer.domain;

import java.io.Serializable;

public class ChunkData implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7815835149311699353L;
	
	protected String fileName;
	protected byte[] chunkData;
	protected int chunkSize;
	protected int chunkNumber;
	protected ChunkStatus status = ChunkStatus.NOT_DOWNLOADED;
	
	
	public ChunkData(String name, int size, int number){
		fileName = name;
		chunkSize = size;
		chunkNumber = number;
		chunkData = new byte[chunkSize];
	}

	
	
	public ChunkStatus getStatus() {
		return status;
	}



	public void setStatus(ChunkStatus status) {
		this.status = status;
	}



	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public byte[] getChunkData() {
		return chunkData;
	}

	public void setChunkData(byte[] chunkData) {
		this.chunkData = chunkData;
	}

	public int getChunkSize() {
		return chunkSize;
	}

	public void setChunkSize(int chunkSize) {
		this.chunkSize = chunkSize;
	}

	public int getChunkNumber() {
		return chunkNumber;
	}

	public void setChunkNumber(int chunkNumber) {
		this.chunkNumber = chunkNumber;
	}
	
}
